package com.mjduan.project;

/**
 * Hans 2017-10-25 23:45
 */
public class ContractProductServiceImpl implements IContractProductService {
    @Override
    public String contractProduct(Long id) {
        if (id < 0) {
            throw new InvalidProductException();
        }
        return "Product contracted!";
    }
}
